<template>
  <el-carousel  class="wai" :interval="5000" arrow="always">
    <el-carousel-item v-for="item in 4" :key="item">
      <h3 class="tp">{{ item }}</h3>
    </el-carousel-item>
  </el-carousel>
</template>

<script>
export default {
  data(){
    return{
      
    }
  }
}
</script>

<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0px;

  }
  
  .el-carousel__item:nth-child(4n+3) {
    background-color: #99a9bf;
    background-image: url('https://img.gushi365.com/gs2020/yss-1.jpg');
    
  }
  
  .el-carousel__item:nth-child(4n+1) {
    background-color: #d3dce6;
    background-image: url('https://img.gushi365.com/gs2020/yss-10.jpg');
  }
  .el-carousel__item:nth-child(4n+2) {
    background-color: #d3dce6;
    background-image: url('https://img1.baidu.com/it/u=3663735903,3946113817&fm=253&fmt=auto&app=138&f=JPEG?w=708&h=500');
  }
  .el-carousel__item:nth-child(4n) {
    background-color: #d3dce6;
    background-image: url('https://img0.baidu.com/it/u=2284105885,2091156206&fm=253&fmt=auto&app=138&f=JPEG?w=751&h=500');
  }
 
  .wai{
      margin-left: 10%;
      width: 100%;
      border-radius:10px;
  }

</style>